Skip to content

Show truthful CI progress and failure-first terminal summaries - #12141

Merged
Amaury Levé (Evangelink) merged 6 commits into
mainfrom
dev/amauryleve/ci-progress-summaries
Oct 30, 2026
Merged

Amaury Levé (Evangelink) merged 6 commits into
mainfrom
dev/amauryleve/ci-progress-summaries

Conversation

@Evangelink

@Evangelink Amaury Levé (Evangelink) commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Pull request

Summary

Make non-cursor Microsoft.Testing.Platform logs show truthful progress even when --show-test-results failed hides successful test results. A heartbeat is due after 60 seconds without visible reporter output, not 60 seconds without a test completion. It reports cumulative completed/failed results across finished and active modules, active modules, and last-completion age (or explicitly no completions yet).

Put the non-cursor final verdict, counts, and failure recaps ahead of artifact details. Do not repeat successful module results that were already printed at completion. Preserve complete artifacts and process diagnostics, failed-test versus host-error counts, progress suppression, retries, and cursor-capable interactive output.

Motivated by the approved investigation of public build 1655468, rather than a separately filed issue. This PR does not merge or enable anything downstream.

Design and decision record

Maintained research, contract, alternatives, and validation.

The change reuses the existing renderer and summary/handshake/errored-assembly mechanisms. There is no new public API, CLI option, or protocol field. --progress off, the existing zero-valued heartbeat override, and slow-test backoff remain supported. Successful final module details remain available when the caller did not print completion lines.

The SDK vendors this reporter source: source-linked tests and packed-host proof alone do not establish that the outer dotnet test console changed. Executed composed evidence is now available in dotnet/sdk#56851 at f5838f51c497a70fb60f3ed7e89102ca293b6838, using this implementation and the aligned packages. This batch targets main only: no backport, downstream SDK-pin update, or feature-gate rollout is included. Any future downstream pin or backport requires its own release-branch validation; existing SDK releases are not fixed by this PR.

The SDK owner has received an immutable feed of all 32 same-source shipping packages from the implementation commit, including MSTest SDK/framework/adapter/source-generation and Trx/CTRF/AzureDevOps/JUnit/HangDump. Task-local versions are 4.6.0-preview.26530.102 (MSTest), 2.6.0-preview.26530.102 (MTP family), and 1.0.0-preview.26530.102 (JUnit). Because the SDK generates JUnit's default independently of the task-local VersionSuffix, its consumer must set MicrosoftTestingExtensionsJUnitReportVersion=1.0.0-preview.26530.102. No old-extension/new-core-only pairing is required for downstream validation.

Demonstration

Text transcripts are clearer than screenshots for these CLI changes. All output below was captured from executed code; local absolute prefixes alone are replaced by <consumer> / <results>.

Real packed host: hidden successful tests

BEFORE: source 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc, local Microsoft.Testing.Platform/2.6.0-preview.26530.101.
AFTER: implementation f4d8d35bf45ce0ece75a66e1b197c96684767e48, local Microsoft.Testing.Platform/2.6.0-preview.26530.102.
Both consumers use MSTest.TestFramework, MSTest.TestAdapter, and Microsoft.Testing.Extensions.TrxReport from 4.6.0-preview.26529.1 / 2.6.0-preview.26529.1, .NET 8.0.32, and eight sequential data rows that await 750ms. Separate caches/output directories prevent stale-package reuse.

Exact invocation in each consumer, with the path aliases above:

$env:MTP_PROGRESS_SILENCE_SECONDS = '1'
$env:MTP_PROGRESS_SLOW_TEST_SECONDS = '0'
.\.dotnet\dotnet.exe <consumer>\bin\Debug\net8.0\ProgressProbe.dll --filter 'FullyQualifiedName~HiddenPass' --no-ansi --progress on --show-test-results failed --no-banner --report-trx --results-directory <results>

The one-second override accelerates the demonstration; deterministic tests separately assert the production default's 59/60-second boundary and repeat interval.

Reproducible packed-consumer fixture and build

The same project and C# source were copied to two task-owned directories. NuGet.config lists the baseline/candidate shipping-package directories plus the public test-tools and dotnet-public feeds. Each NUGET_PACKAGES directory is outside its consumer project, preventing SDK default items from including cached build assets.

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <OutputType>Exe</OutputType>
    <EnableMSTestRunner>true</EnableMSTestRunner>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="MSTest.TestFramework" Version="4.6.0-preview.26529.1" />
    <PackageReference Include="MSTest.TestAdapter" Version="4.6.0-preview.26529.1" />
    <PackageReference Include="Microsoft.Testing.Extensions.TrxReport" Version="2.6.0-preview.26529.1" />
    <PackageReference Include="Microsoft.Testing.Platform" Version="$(PlatformPackageVersion)" />
  </ItemGroup>
</Project>
using Microsoft.Testing.Platform.Builder;
using Microsoft.VisualStudio.TestTools.UnitTesting;

[assembly: DoNotParallelize]

[TestClass]
public sealed class ProgressCases
{
    [TestMethod]
    [DataRow(1)]
    [DataRow(2)]
    [DataRow(3)]
    [DataRow(4)]
    [DataRow(5)]
    [DataRow(6)]
    [DataRow(7)]
    [DataRow(8)]
    public async Task HiddenPass(int row)
    {
        await Task.Delay(TimeSpan.FromMilliseconds(750));
        Assert.IsGreaterThan(0, row);
    }

    [TestMethod]
    public void FailsWithDiagnostics()
        => Assert.Fail("Captured failure from the real packed test host.");

    [TestMethod]
    public void PackageProvenance()
        => Console.WriteLine(typeof(ITestApplication).Assembly.Location);
}
$env:NUGET_PACKAGES = "$evidence\packages-before"
.\.dotnet\dotnet.exe build "$evidence\consumer-before\ProgressProbe.csproj" -c Debug -p:PlatformPackageVersion=2.6.0-preview.26530.101 -warnaserror "-bl:$evidence\consumer-before-build-final.binlog" -v:minimal
# Passed: exit 0; zero warnings/errors.
$env:NUGET_PACKAGES = "$evidence\packages-after"
.\.dotnet\dotnet.exe build "$evidence\consumer-after\ProgressProbe.csproj" -c Debug -p:PlatformPackageVersion=2.6.0-preview.26530.102 -warnaserror "-bl:$evidence\consumer-after-build.binlog" -v:minimal
# Passed: exit 0; zero warnings/errors.

BEFORE — exit 0, eight executed/passed, zero heartbeat lines:

Test run summary: Passed! - <consumer>\bin\Debug\net8.0\ProgressProbe.dll (net8.0|x64)
  total: 8
  failed: 0
  succeeded: 8
  skipped: 0
  duration: 6s 379ms
  Out of process file artifacts produced:
    - <results>\ProgressProbe_net8.0_x64.trx

AFTER — exit 0, the same eight executed/passed, six progress lines:

running... 1 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (2)
running... 2 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (3)
running... 3 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (4)
running... 5 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (6)
running... 6 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (7)
running... 7 completed, 0 failed, active modules: 1 | last completion: 0s ago | active: HiddenPass (8)

Test run summary: Passed! - <consumer>\bin\Debug\net8.0\ProgressProbe.dll (net8.0|x64)
  total: 8
  failed: 0
  succeeded: 8
  skipped: 0
  duration: 6s 332ms
  Out of process file artifacts produced:
    - <results>\ProgressProbe_net8.0_x64.trx

The comparison packages' embedded repository commits and hashes were verified, as were project.assets.json, cache DLLs, and the DLLs in the launched consumer directories:

State Package SHA-256 Consumed core DLL SHA-256
Before E923C274656C1AF40AE9236F7712D537C88C99FC4C5DEDA07277746BD11483FB 59590E8F40E00587F38916EBE98A3E5B8B9B5F15CC1E9973F7FBD5A759A490D1
After FD65003E40C1C20E055388C35205CB0081603759A3EFA25E41F9FFCAECE368F8 D0A562846536D9FE8E9456E3785FAF566165F6896720993605F81B07CBC519D5

These are the preserved net8-only comparison packages, not a claim about a later multi-TFM package's archive hash.

Executed shared reporter: failure-first summary

The same real reporter test harness supplies a passing module, a failed test, a process failure, a missing handshake, and three artifacts in both source states. These are captured reporter outputs from NonCursorSummary_FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated (False), not a fabricated native SDK run. The identical inline module-start/completion diagnostics precede these final-summary excerpts in both runs.

BEFORE:

  In process file artifacts produced:
    - passing.trx
    - failing.trx
    - crashed.trx

Test run summary: Failed!
  passing.dll (net9.0|x64) passed [+1/x0/?0] (0ms)
  failing.dll (net9.0|x64) failed with 1 error(s) [+0/x1/?0] (0ms)
  crashed.dll (net9.0|x64) failed [+1/x0/?0] (0ms)

  error: 2

  total: 3
  failed: 1
  succeeded: 2
  skipped: 0
  duration: 0ms

Handshake failures:
  missing.dll (net9.0)
Exit code: 1
  Standard output: handshake stdout
  Error output: handshake stderr

Errored assemblies:
  crashed.dll (net9.0|x64)
Exit code: 42
  Standard output: crash stdout
  Error output: crash stderr

AFTER:

Test run summary: Failed!
  error: 2

  total: 3
  failed: 1
  succeeded: 2
  skipped: 0
  duration: 0ms

  failing.dll (net9.0|x64) failed with 1 error(s) [+0/x1/?0] (0ms)
  crashed.dll (net9.0|x64) failed [+1/x0/?0] (0ms)


Handshake failures:
  missing.dll (net9.0)
Exit code: 1
  Standard output: handshake stdout
  Error output: handshake stderr

Errored assemblies:
  crashed.dll (net9.0|x64)
Exit code: 42
  Standard output: crash stdout
  Error output: crash stderr

  In process file artifacts produced:
    - passing.trx
    - failing.trx
    - crashed.trx

Native SDK composed proof

The SDK owner executed the built managed and Native AOT SDK with this frozen 32-package feed; its published commands, source/package identities, captures, and results were read back from dotnet/sdk#56851. This TestFx session did not rerun the SDK owner's commands.

BEFORE SDK: c781c3cda4cf87f94291d04223e9146664d4f5f5. AFTER SDK: f5838f51c497a70fb60f3ed7e89102ca293b6838. TestFx source: f4d8d35bf45ce0ece75a66e1b197c96684767e48. The Windows x64 built redist is 12.0.100-dev, with genuine net9.0 MSTest applications on .NET 9.0.0. The native invocation explicitly prints AOT test tier: TestModules..

In the real native --test-modules hidden-pass comparison, BEFORE remained silent. AFTER emitted this captured line at 61.7903221 seconds, including ten results from the module that had already finished:

running... 18 completed, 0 failed, active modules: 1 | last completion: 4s ago

The final total remains 20, compact verdict/counts precede artifacts without reprinting successful modules, and explicit suppression passes. The SDK record reports 17 composed cases / 50 passing checks, plus 246 passing focused SDK tests; it also covers real collection, worker diagnostics/degradation, crash recovery, cancellation, and zero results.

This is reporter/ordinary-report composition proof, not required cross-module Azure DevOps/GitHub summary handoff proof. That SDK PR does not advertise field 19 (RequiredPostProcessingSupported); the distinct required-processing contract now has separate evidence in the companion below. Ordinary TRX/CTRF/JUnit merging does not establish that capability.

Required CI-summary SDK companion

dotnet/sdk#56852 now provides separate required singleton/multi-module evidence at a629f41ab69bdb8f9c2c6ce63d1edf7b5f1aabfe, stacked on parent c6405adbf0aadab2a0419579f5bffcd72a72764a. The before SDK is 4622ed3b6b3d58465613c5ac0a11243d40f61107; both states use this unchanged frozen 32-package f4d8d35bf45ce0ece75a66e1b197c96684767e48 feed.

The SDK owner executed the real managed/Native AOT shipping layouts. This session inspected the publication and all 27 final invocation records, matching their source, binary hashes, and exits to the matrix, and read the actual singleton/mixed before/after output. Application DLL and resolved-assets hashes match between the compared states:

Comparison BEFORE AFTER
One module, 10 passes, parent exit 0 Per-module summary; no required worker/global Azure attachment. Actual required worker with one manifest input and one global Azure attachment; counts and exit unchanged.
Two modules, 20 outcomes: 17 passed, 1 failed, 2 skipped; parent exit 2 Per-module CI fallback. One global Azure attachment and one global GitHub section; authoritative run summary and outcomes/exit preserved.

The final matrix records 27 cases / 470 checks; the SDK publication also records separate older-MTP and actual connected-worker Ctrl+C cases, plus 343 passing SDK tests. Suppression, no-handshake/legacy paths, ignored/zero/minimum policies, truncation, worker failures/timeouts, missing/partial inputs, and cancellation are covered. Matrix SHA-256: 68F80945F39612A08FB6644E59A3ED85D950ED355D0E3AE44A064EC128C0F320.

Policy distinction: accepted runner exit 0 does not erase raw failed-test counts, test-result indicators/details, or established on-failure visibility. Separate runner-policy presentation is owned by the diagnostic consumer PR; failed tests are not rewritten as passed.

This is Windows x64 candidate evidence, with local Azure logging-command/GitHub step-summary emission, not remote-provider upload or cross-OS/servicing proof. The SDK companion is still a dependent open PR, not merged or shipped; main-only/no-pin-rollout/no-backport scope is unchanged.

Validation and regression proof

SDK 12.0.100-alpha.1.26509.101, Debug/net8.0, runtime 8.0.32. The repository build scripts bootstrapped the toolchain. A shortened process-local PATH was required because the inherited PATH exceeded cmd.exe's limit; global settings were not changed.

$evidence below denotes the task-owned artifact directory; $before the isolated comparison checkout. These aliases replace only machine-local paths.

.\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Platform.UnitTests\Microsoft.Testing.Platform.UnitTests.csproj -c Debug -p:TargetFramework=net8.0 -p:TargetFrameworks=net8.0 -p:VersionSuffix=preview.26530.102 -warnaserror "-bl:$evidence\head-net8-final.binlog" -v:minimal
# Passed: exit 0; zero warnings/errors.

$filter = 'FullyQualifiedName~TerminalTestReporterTests|FullyQualifiedName~SilenceDrivenHeartbeatRendererTests|FullyQualifiedName~TerminalTestReporterCommandLineOptionsProviderTests|FullyQualifiedName~TerminalOutputDeviceTests'
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.UnitTests.dll --filter $filter --report-trx --results-directory "$evidence\head-tests-final" --no-ansi --progress off
# Passed: exit 0; 370 executed/passed, 0 failed/skipped. Baseline equivalent: 361 passed.

.\.dotnet\dotnet.exe build test\UnitTests\Microsoft.Testing.Platform.TerminalReporterContract.UnitTests\Microsoft.Testing.Platform.TerminalReporterContract.UnitTests.csproj -c Debug -p:TargetFramework=net8.0 -p:TargetFrameworks=net8.0 -p:VersionSuffix=preview.26530.102 -warnaserror "-bl:$evidence\head-contract-net8.binlog" -v:minimal
.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.TerminalReporterContract.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.TerminalReporterContract.UnitTests.dll --no-ansi --progress off --report-trx --results-directory "$evidence\contract-tests"
# Both passed: exit 0; 15 contract cases executed/passed, 0 skipped.

.\eng\build.ps1 -restore -build -pack -projects src\Platform\Microsoft.Testing.Platform\Microsoft.Testing.Platform.csproj -c Debug -bl /p:TargetFramework=net8.0 /p:TargetFrameworks=net8.0 /p:VersionSuffix=preview.26530.102 /p:SkipRuntimesInstall=true
# Passed: exit 0; package content/metadata verification passed. The pinned net8 runtime was already installed.

.\eng\build.ps1 -restore -build -pack -projects 'src\**\*.csproj' -c Debug -bl /p:VersionSuffix=preview.26530.102 /p:SkipRuntimesInstall=true
# Passed: exit 0; full multi-TFM build/pack, zero warnings/errors, package verification passed.

.\.dotnet\dotnet.exe msbuild src\Platform\Microsoft.Testing.Platform\Microsoft.Testing.Platform.csproj /t:UpdateXlf /p:TargetFramework=net8.0 "-bl:$evidence\update-xlf.binlog" -v:minimal
python .github\scripts\check_localization.py
# Both passed: exit 0; 13 generated terminal catalogs, 364 repository catalogs validated.

The real packed-host checks also executed eight passing rows with --progress off and with MTP_PROGRESS_SILENCE_SECONDS=0 (no heartbeat in either run). An intentional failed test retained its diagnostic and exit 2; an empty selection retained exit 8. Those child failures are expected outcomes, not successful tests or red-phase evidence.

Test-value evidence

Correct implementation: f4d8d35bf45ce0ece75a66e1b197c96684767e48.
Counterfactual: 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc plus the identical final test files and an ignored optional fourth renderer-constructor parameter solely to preserve compilation. No new behavior is present in that baseline; this is a buildable targeted counterfactual, not an unmodified baseline run.
Retained-test/support patch SHA-256: 164ED76C41CAD0FD7B5BEB1A8B3DBAFBFC180836C3A872B39A4BD162CD642352.

$regressions = 'FullyQualifiedName~VisibleSilence_|FullyQualifiedName~NonCursorSummary_|FullyQualifiedName~NonCursorProgress_'
.\.dotnet\dotnet.exe "$before\artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.UnitTests.dll" --filter $regressions --report-trx --results-directory "$evidence\red-tests" --no-ansi --progress off
# Executed: detected. Exit 2; all 10 cases executed and failed intended output/count assertions; 0 skipped.

.\.dotnet\dotnet.exe artifacts\bin\Microsoft.Testing.Platform.UnitTests\Debug\net8.0\Microsoft.Testing.Platform.UnitTests.dll --filter $regressions --report-trx --results-directory "$evidence\green-tests" --no-ansi --progress off
# Executed: passed. Exit 0; the same 10 cases passed; 0 skipped.
Requirement Evidence
Hidden results cannot postpone the default 60-second boundary VisibleSilence_HiddenCompletions_EmitAtDefaultBoundary: baseline emitted 0 lines instead of the expected bounded progress; fixed passes.
Visible output postpones heartbeat, not completion age VisibleSilence_VisibleWriteDelaysHeartbeatButNotCompletionAge, VisibleSilence_ProgressMessage_PostponesHeartbeat: both detected baseline behavior and passed with the fix.
No fabricated completion and clean session reset VisibleSilence_NoCompletionsAndRestart_DoNotInventProgress: detected baseline output, then passed.
Finished modules remain in run totals VisibleSilence_CompletedModules_RemainInCumulativeCounts, NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals: baseline reported 1 instead of 3 completed in the real reporter wiring; fixed passes.
Failure-first summary with full artifacts and accurate error/test counts NonCursorSummary_FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated (NoAnsi and SimpleAnsi): both baseline snapshots failed, both fixed snapshots pass.
No duplicate successful recap; no lost retry diagnostics NonCursorSummary_AllPassingModules_KeepOnlyAggregateAfterCompletion, NonCursorSummary_SuppressedVerdict_KeepsFailureRecapsAndArtifacts: detected baseline output and passed with the fix.
Interactive behavior remains unchanged Existing AnsiTerminal_OutputFormattingIsCorrect and progress-frame cases passed before and after within the focused suite.

TRX counters, individual names/outcomes, and matching before/after test-file hashes were inspected; no skips, setup failures, or zero-test runs were counted as regression proof. The actual tests retain method-level parallelism (32 workers here); clocks/consoles are per-test and the reporter refresher is joined before reading the captured output.

Native SDK reporter composition and required cross-module CI-summary handoff have separate, revision-bound evidence in the linked SDK PRs above. Neither record claims release-branch validation, downstream pin changes, rollout, merge, or a shipped fix.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 11:30
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Oct 30, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.

Summary: The change looks sound overall. The heartbeat is now driven by visible-output silence, it reports cumulative counts from the retained assemblies, and the non-cursor summary is reordered (compact form). I reviewed the diff statically and did not run anything.

Findings (2 inline):

  • Thread-safety contract of _lastVisibleOutputTicks, which is no longer accessed through Interlocked/Volatile.
  • The silence-threshold default changes from 30s to 60s, which is user-visible. Please make sure the docs are updated and the change is called out.

Other notes:

  • TerminalProgressHeartbeat now takes a third argument, {2}. The .resx is updated and the .xlf files were regenerated, so the localization flow looks correct. The two new suffix strings have no {Locked} markers, which is fine.
  • The summary reorder for non-cursor output is a visible output change. It is covered by the new reporter tests, but please confirm that the acceptance tests asserting summary output still pass.
  • No new public API was added, and there are no dependency changes.
  • Test-value evidence: the PR's decision record claims red/green evidence. I did not re-execute it as a read-only reviewer.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12141

Compared merge base 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc with head c8f95722f0a97434ce92809b63b5ce730859b525. Evidence applies to this head, not every intermediate commit.

Test-value evidence

Static predictions only. No tests were executed and no paired red/green records were available.

  • Heartbeat renderer (completion age, visible-write postponement, progress-message postponement, restart, cumulative module counts): The SilenceDrivenHeartbeatRendererTests cases use a fake clock and compare exact heartbeat text. Reverting the age/postponement logic would change the line count or the "last completion" text, so these are predicted to fail without the change. Prediction, unverified.
  • Non-cursor summary (failures before artifacts, no repeated passing recaps, aggregate-only for all-pass, suppressed verdict): The exact raw-string output comparisons are predicted to fail if recaps were repeated or reordered. Prediction, unverified.
  • Completed worker slot included in run totals: The test expects "3 completed ... active: InFlight". Excluding finished modules would give 1 completed, so it is predicted to fail. Prediction, unverified.
  • Docs, resx/xlf and glossary changes: not applicable (non-executable).
  • Unassessed: The 22 changed src files were not individually traced beyond the terminal reporter and heartbeat paths.

🧵 Parallel safety

STATUS: CLEAN. Microsoft.Testing.Platform.UnitTests runs at MethodLevel. The changed tests use per-test fakes (FakeClock, RecordingStringTerminal, StringBuilderConsole, stopwatch stubs) and have no shared global state. The specialist reviewed only the Terminal tests and the src files they reference.

Per-test assessment

Pseudo-mutation evidence is static prediction, not executed mutation results.

ResultQualityTestNotesHow to improve
PassB (80–89)new TerminalTestReporterTests.
NonCursorSummary_
FailuresPrecede
ArtifactsAnd
SuccessfulRecapsAreNotRepeated
Exact summary equality covers ordering and recap suppression for both ANSI modes.None
PassB (80–89)new TerminalTestReporterTests.
NonCursorSummary_
AllPassingModules_
KeepOnlyAggregateAfterCompletion
Exact aggregate-only summary asserted.None
PassB (80–89)new TerminalTestReporterTests.
NonCursorSummary_
SuppressedVerdict_
KeepsFailureRecapsAndArtifacts
Exact output covers handshake failure and artifact retention.None
PassB (80–89)new TerminalTestReporterTests.
NonCursorProgress_
CompletedWorkerSlot_
IsIncludedInRunTotals
Exact heartbeat line asserted; it waits on an event with a 30s timeout.None
PassB (80–89)new SilenceDrivenHeartbeatRendererTests.
VisibleSilence_*
(5 new tests)
Fake-clock, exact-text assertions cover boundary, restart, postponement and cumulative counts.None
PassB (80–89)mod SilenceDrivenHeartbeatRendererTests.
SilenceHeartbeat_*
Modified tests still assert exact output with a deterministic clock.None

No inline findings. Existing review threads were not exhaustively checked for duplicates, but no inline comments were prepared.

This advisory review is heuristic and non-blocking.

Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 45.1 AIC · ⌖ 0.827 AIC · ⊞ 8K · ◷

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12141

Compared merge base 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc with head 96db3705ab7ec26801755934dd4e45319e777f8c. Evidence applies to this head, not every intermediate commit. Since the previously reviewed head c8f95722f0a97434ce92809b63b5ce730859b525, only docs/decisions/ci-terminal-progress-summaries.md changed (+10/−5); source and test files are identical.

Test-value evidence

Static predictions only. No tests were executed and no paired red/green records were accessible.

  • Heartbeat silence driven by visible output (hidden completions, visible-write and progress-message postponement, restart, cumulative module counts, "last completion" age): the SilenceDrivenHeartbeatRendererTests cases use a fake clock and compare exact heartbeat text. Restoring the completion-based baseline would change the emitted lines or the "last completion" text, so they are predicted to fail without the change and pass with it. Unverified.
  • Non-cursor summary ordering and recap suppression: the exact raw-string comparisons in TerminalTestReporterTests.NonCursorSummary_* are predicted to fail if failures/artifacts were reordered or passing recaps repeated. Unverified.
  • Completed worker slot included in totals: NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals expects 3 completed. Using only active progress slots would give 1, so it is predicted to fail. Unverified.
  • Docs, resx/xlf, glossary: not applicable (non-executable).
  • Unassessed: src files beyond the Terminal reporter/heartbeat paths were not individually traced.

🧵 Parallel safety

STATUS: PARTIAL for this head. The specialist was not re-run, because test and source files are unchanged since the previous head (which reported CLEAN). A manual read found the changed tests use per-test fakes (FakeClock, RecordingStringTerminal, StringBuilderConsole, stopwatch mock) with no shared global state, and no parallelization configuration changed. This is not a complete re-audit.

Per-test assessment

Pseudo-mutation evidence is static prediction, not executed mutation results.

ResultQualityTestNotesHow to improve
PassB (80–89)new TerminalTestReporterTests.
NonCursorSummary_
FailuresPrecede
ArtifactsAnd
SuccessfulRecapsAreNotRepeated
Exact summary equality covers ordering and recap suppression for both ANSI modes.None
PassB (80–89)new TerminalTestReporterTests.
NonCursorSummary_
AllPassingModules_
KeepOnlyAggregateAfterCompletion
Exact aggregate-only summary asserted.None
PassB (80–89)new TerminalTestReporterTests.
NonCursorSummary_
SuppressedVerdict_
KeepsFailureRecapsAndArtifacts
Exact output covers handshake failure and artifact retention.None
PassB (80–89)new TerminalTestReporterTests.
NonCursorProgress_
CompletedWorkerSlot_
IsIncludedInRunTotals
Exact heartbeat line asserted; relies on a background refresher and a 30s wait.None
PassB (80–89)new SilenceDrivenHeartbeatRendererTests.
VisibleSilence_*
(5 tests)
Fake-clock exact-text assertions cover boundary, restart, postponement and cumulative counts.None
PassB (80–89)mod SilenceDrivenHeartbeatRendererTests.
SilenceHeartbeat_*
Modified tests assert exact output with a deterministic clock.None

No inline findings; existing threads were read and no novel actionable candidate passed the publication gate.

This advisory review is heuristic and non-blocking.

Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 32.8 AIC · ⌖ 0.828 AIC · ⊞ 8K · ◷

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The test can signal completion before a heartbeat is rendered, allowing Dispose() to stop the refresher early and intermittently fail the output assertion.

1 open issue
What changed in this PR

Updates Microsoft.Testing.Platform’s non-cursor reporting so hidden successful results do not suppress CI progress, and final summaries put verdicts and failures before artifacts. Downstream SDK integration remains separate.

Changes:

  • Emit heartbeats after 60 seconds without visible reporter output, including cumulative counts, active modules, and last-completion age.
  • Reorder non-cursor summaries and omit successful module recaps already printed at completion.
  • Add regression tests, resource updates, and documented design and validation evidence.

Test-value evidence: The PR reports 10 regression cases failing against a targeted baseline and passing at f4d8d35bf45ce0ece75a66e1b197c96684767e48. Those execution results were not independently verified here; review validation was static.

File Description
test/​UnitTests/​Microsoft.Testing.Platform.UnitTests/​OutputDevice/​Terminal/​TerminalTestReporterTests.cs Adds summary-ordering and cumulative-progress tests.
test/​UnitTests/​Microsoft.Testing.Platform.UnitTests/​OutputDevice/​Terminal/​SilenceDrivenHeartbeatRendererTests.cs Tests silence boundaries, completion age, and resets.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​TerminalOutputDevice.Initialization.cs Sets the 60-second default and corrects progress comments.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.zh-Hant.xlf Updates Traditional Chinese catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.zh-Hans.xlf Updates Simplified Chinese catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.tr.xlf Updates Turkish catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.ru.xlf Updates Russian catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.pt-BR.xlf Updates Brazilian Portuguese catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.pl.xlf Updates Polish catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.ko.xlf Updates Korean catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.ja.xlf Updates Japanese catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.it.xlf Updates Italian catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.fr.xlf Updates French catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.es.xlf Updates Spanish catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.de.xlf Updates German catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​xlf/​TerminalResources.cs.xlf Updates Czech catalog entries.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​TestProgressStateAwareTerminal.cs Makes visible progress messages reset heartbeat silence.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​TerminalTestReporterOptions.cs Documents visible-output silence and updates the default.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​TerminalTestReporter.Summary.cs Reorders non-cursor summaries and filters repeated successes.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​TerminalTestReporter.cs Selects compact summaries and supplies cumulative module state.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​TerminalResources.resx Adds richer heartbeat text.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​TerminalResources.cs Adds heartbeat resource accessors.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​SilenceDrivenHeartbeatRenderer.cs Separates silence timing from completion age and aggregates totals.
src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​IProgressRenderer.cs Clarifies completion-notification documentation.
docs/​glossary.md Documents progress and summary behavior.
docs/​decisions/​ci-terminal-progress-summaries.md Records design decisions, validation, and SDK integration boundaries.

Review effort: Balanced

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot removed the state/needs-review Awaiting review from the team. label Oct 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/approved Proposal approved; ready for implementation. labels Oct 30, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Oct 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. state/approved Proposal approved; ready for implementation. labels Oct 30, 2026
@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. state/approved Proposal approved; ready for implementation. labels Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The constructor signature change is not recorded in the internal API baseline, causing analyzer diagnostics that fail warning-as-error builds.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

High severity Update tracked API baseline for the new constructor signature

src/​Platform/​Microsoft.Testing.Platform/​OutputDevice/​Terminal/​SilenceDrivenHeartbeatRenderer.cs:50

The tracked internal API still lists only the three-parameter constructor in InternalAPI/InternalAPI.Shipped.txt:2119, with no removal or replacement in InternalAPI.Unshipped.txt. Adding an optional parameter changes the tracked signature, leaving the API baseline inconsistent and causing analyzer diagnostics in warning-as-error builds. Record the old signature as removed and add the four-parameter signature in InternalAPI.Unshipped.txt.

1 resolved since last review

Review effort: Balanced

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 30, 2026 14:14
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/approved Proposal approved; ready for implementation. labels Oct 30, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧪 Test quality review — PR #12141

Compared merge base 7dd2407848979d58f0e9b2bd75101a2dbfa7d1bc with head 48278b615aa31246bfa31f9b7a76c54ee3696fed. Evidence applies to this head, not every intermediate commit.

Test-value evidence

All entries are static predictions. No paired execution records were available, and this workflow did not run tests.

Contract Test / decisive assertion Counterfactual Prediction
Heartbeat is driven by the last visible output, not by test completion VisibleSilence_HiddenCompletions_EmitAtDefaultBoundary and VisibleSilence_VisibleWriteDelaysHeartbeatButNotCompletionAge: exact output equality Resetting the silence timer in OnTestCompleted, as the old code did Likely killed (inferred)
Heartbeat line gains the active-module count and the last-completion age (or no tests completed yet), and OnStart resets state SilenceHeartbeat_WhenNoCompletionForThreshold_..., VisibleSilence_NoCompletionsAndRestart_DoNotInventProgress Dropping either suffix, or keeping the completion tick across OnStart Likely killed (inferred)
Cumulative counts include completed modules via getTestRuns VisibleSilence_CompletedModules_RemainInCumulativeCounts, NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals Summing only the active slots, so the count would be 2 instead of 5 and 1 instead of 3 Likely killed (inferred)
Progress messages postpone the heartbeat VisibleSilence_ProgressMessage_PostponesHeartbeat Not updating _lastVisibleOutputTicks in OnWrite Likely killed (inferred)
Non-cursor summary order: failures first, artifacts last, successful module recaps not repeated, summary suppressed on retry NonCursorSummary_* (4 tests), plus the two updated artifact-order expectations in the existing tests Reverting the ordering in AppendTestRunSummary Likely killed (inferred)
Docs, resx and xlf changes n/a Non-executable. The xlf files should be confirmed as regenerated by UpdateXlf. Not applicable

🧵 Parallel safety

PARALLEL-SAFETY RESULT
STATUS: PARTIAL

The specialist task was not run in this session, so parallel-safety coverage is incomplete and is not reported as clean. In-diff observation only: the new tests use in-memory terminals, fake clocks and per-test reporters. The single real-time test, NonCursorProgress_CompletedWorkerSlot_IsIncludedInRunTotals, waits up to 30s on a ManualResetEventSlim with the test cancellation token. No shared static state or shared file paths were spotted.

Per-test assessment

Pseudo-mutation evidence consists of static predictions, not executed mutation results. Existing-thread deduplication was not completed. No inline comments are published because no verified actionable defect was found.

ResultQualityTestNotesHow to improve
PassA (90–100)mod SilenceDrivenHeartbeatRendererTests.
SilenceHeartbeat_
WhenNoCompletionForThreshold_
EmitsSingleSummaryLine
Exact raw-string output covers counts, age and active test.None
PassA (90–100)new SilenceDrivenHeartbeatRendererTests.
VisibleSilence_
HiddenCompletions_
EmitAtDefaultBoundary
Checks the default threshold boundary and exact lines.None
PassA (90–100)new SilenceDrivenHeartbeatRendererTests.
VisibleSilence_
VisibleWriteDelaysHeartbeatButNotCompletionAge
Exact output separates silence timing from completion age.None
PassA (90–100)new SilenceDrivenHeartbeatRendererTests.
VisibleSilence_
NoCompletionsAndRestart_
DoNotInventProgress
Covers the no-completion text and the restart reset.None
PassA (90–100)new SilenceDrivenHeartbeatRendererTests.
VisibleSilence_
CompletedModules_
RemainInCumulativeCounts
Exact cumulative counts with a finished module.None
PassA (90–100)new SilenceDrivenHeartbeatRendererTests.
VisibleSilence_
ProgressMessage_
PostponesHeartbeat
Verifies the postponement boundary at 49s and 50s.None
PassA (90–100)new TerminalTestReporterTests.
NonCursorSummary_
FailuresPrecedeArtifactsAndSuccessfulRecapsAreNotRepeated
Exact full-summary ordering for both ANSI modes.None
PassA (90–100)new TerminalTestReporterTests.
NonCursorSummary_
AllPassingModules_
KeepOnlyAggregateAfterCompletion
Exact aggregate-only output.None
PassA (90–100)new TerminalTestReporterTests.
NonCursorSummary_
SuppressedVerdict_
KeepsFailureRecapsAndArtifacts
Exact output for the retry (suppressed verdict) path.None
PassB (80–89)new TerminalTestReporterTests.
NonCursorProgress_
CompletedWorkerSlot_
IsIncludedInRunTotals
Exact output, but it relies on the real refresher thread and a 30s wait.None
PassA (90–100)mod TerminalTestReporterTests.
(existing artifact-order expectations, 2 tests)
Expectations moved to match the new artifacts-last order.None

This advisory review is heuristic and non-blocking.

Re-run the combined review with /review-tests, or only the parallel-safety specialist with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · auto · 34.1 AIC · ⌖ 0.903 AIC · ⊞ 8K · ◷

@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. state/approved Proposal approved; ready for implementation. labels Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The supplied review record lists no active issues for the non-cursor CI progress and summary changes.

No open issues 🎉

Review effort: Balanced

@Evangelink
Amaury Levé (Evangelink) merged commit c02d601 into main Oct 30, 2026
29 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/ci-progress-summaries branch October 30, 2026 15:55
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants